package com.agan.system.param;


import com.agan.common.core.param.PageCommonParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;


@Data
@EqualsAndHashCode(callSuper = false)
public class ListRoleParam extends PageCommonParam {
    private String roleId;

    private String roleName;

    private String status;

    private String roleKey;

    private String beginTime;

    private String endTime;

    public String getBeginTime() {
        if (!Objects.isNull(getParams()) && !Objects.isNull(getParams().get("beginTime"))) {
            return getParams().get("beginTime").toString();
        }
        return beginTime;
    }

    public String getEndTime() {
        if (!Objects.isNull(getParams()) && !Objects.isNull(getParams().get("endTime"))) {
            return getParams().get("endTime").toString();
        }
        return endTime;
    }
}
